Optimal. Leaf size=259 \[ -\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+\sqrt [3]{b}}{\sqrt {a^{2/3}-b^{2/3}}}\right )}{3 b d \sqrt {a^{2/3}-b^{2/3}}}-\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+(-1)^{2/3} \sqrt [3]{b}}{\sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}\right )}{3 b d \sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}+\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{-1} \left ((-1)^{2/3} \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+\sqrt [3]{b}\right )}{\sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 b d \sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}+\frac {x}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 259, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3220, 3213, 2660, 618, 204} \[ -\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+\sqrt [3]{b}}{\sqrt {a^{2/3}-b^{2/3}}}\right )}{3 b d \sqrt {a^{2/3}-b^{2/3}}}-\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+(-1)^{2/3} \sqrt [3]{b}}{\sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}\right )}{3 b d \sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}+\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{-1} \left ((-1)^{2/3} \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )+\sqrt [3]{b}\right )}{\sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 b d \sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}+\frac {x}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 2660
Rule 3213
Rule 3220
Rubi steps
\begin {align*} \int \frac {\sin ^3(c+d x)}{a+b \sin ^3(c+d x)} \, dx &=\int \left (\frac {1}{b}-\frac {a}{b \left (a+b \sin ^3(c+d x)\right )}\right ) \, dx\\ &=\frac {x}{b}-\frac {a \int \frac {1}{a+b \sin ^3(c+d x)} \, dx}{b}\\ &=\frac {x}{b}-\frac {a \int \left (-\frac {1}{3 a^{2/3} \left (-\sqrt [3]{a}-\sqrt [3]{b} \sin (c+d x)\right )}-\frac {1}{3 a^{2/3} \left (-\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b} \sin (c+d x)\right )}-\frac {1}{3 a^{2/3} \left (-\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} \sin (c+d x)\right )}\right ) \, dx}{b}\\ &=\frac {x}{b}+\frac {\sqrt [3]{a} \int \frac {1}{-\sqrt [3]{a}-\sqrt [3]{b} \sin (c+d x)} \, dx}{3 b}+\frac {\sqrt [3]{a} \int \frac {1}{-\sqrt [3]{a}+\sqrt [3]{-1} \sqrt [3]{b} \sin (c+d x)} \, dx}{3 b}+\frac {\sqrt [3]{a} \int \frac {1}{-\sqrt [3]{a}-(-1)^{2/3} \sqrt [3]{b} \sin (c+d x)} \, dx}{3 b}\\ &=\frac {x}{b}+\frac {\left (2 \sqrt [3]{a}\right ) \operatorname {Subst}\left (\int \frac {1}{-\sqrt [3]{a}-2 \sqrt [3]{b} x-\sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 b d}+\frac {\left (2 \sqrt [3]{a}\right ) \operatorname {Subst}\left (\int \frac {1}{-\sqrt [3]{a}+2 \sqrt [3]{-1} \sqrt [3]{b} x-\sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 b d}+\frac {\left (2 \sqrt [3]{a}\right ) \operatorname {Subst}\left (\int \frac {1}{-\sqrt [3]{a}-2 (-1)^{2/3} \sqrt [3]{b} x-\sqrt [3]{a} x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 b d}\\ &=\frac {x}{b}-\frac {\left (4 \sqrt [3]{a}\right ) \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/3}-b^{2/3}\right )-x^2} \, dx,x,-2 \sqrt [3]{b}-2 \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 b d}-\frac {\left (4 \sqrt [3]{a}\right ) \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/3}+\sqrt [3]{-1} b^{2/3}\right )-x^2} \, dx,x,-2 (-1)^{2/3} \sqrt [3]{b}-2 \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 b d}-\frac {\left (4 \sqrt [3]{a}\right ) \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^{2/3}-(-1)^{2/3} b^{2/3}\right )-x^2} \, dx,x,2 \sqrt [3]{-1} \sqrt [3]{b}-2 \sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )\right )}{3 b d}\\ &=\frac {x}{b}+\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{-1} \sqrt [3]{b}-\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}}}\right )}{3 \sqrt {a^{2/3}-(-1)^{2/3} b^{2/3}} b d}-\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {\sqrt [3]{b}+\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}-b^{2/3}}}\right )}{3 \sqrt {a^{2/3}-b^{2/3}} b d}-\frac {2 \sqrt [3]{a} \tan ^{-1}\left (\frac {(-1)^{2/3} \sqrt [3]{b}+\sqrt [3]{a} \tan \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}}}\right )}{3 \sqrt {a^{2/3}+\sqrt [3]{-1} b^{2/3}} b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.18, size = 140, normalized size = 0.54 \[ \frac {2 i a \text {RootSum}\left [i \text {$\#$1}^6 b-3 i \text {$\#$1}^4 b+8 \text {$\#$1}^3 a+3 i \text {$\#$1}^2 b-i b\& ,\frac {2 \text {$\#$1} \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right )-i \text {$\#$1} \log \left (\text {$\#$1}^2-2 \text {$\#$1} \cos (c+d x)+1\right )}{\text {$\#$1}^4 b-2 \text {$\#$1}^2 b-4 i \text {$\#$1} a+b}\& \right ]+3 c+3 d x}{3 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin \left (d x + c\right )^{3}}{b \sin \left (d x + c\right )^{3} + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.47, size = 106, normalized size = 0.41 \[ \frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d b}-\frac {a \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{6}+3 a \,\textit {\_Z}^{4}+8 b \,\textit {\_Z}^{3}+3 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{4}+2 \textit {\_R}^{2}+1\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{5} a +2 \textit {\_R}^{3} a +4 \textit {\_R}^{2} b +\textit {\_R} a}\right )}{3 d b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {-8 \, a b \int \frac {8 \, a \cos \left (3 \, d x + 3 \, c\right )^{2} - b \cos \left (3 \, d x + 3 \, c\right ) \sin \left (6 \, d x + 6 \, c\right ) + 3 \, b \cos \left (3 \, d x + 3 \, c\right ) \sin \left (4 \, d x + 4 \, c\right ) + b \cos \left (6 \, d x + 6 \, c\right ) \sin \left (3 \, d x + 3 \, c\right ) - 3 \, b \cos \left (4 \, d x + 4 \, c\right ) \sin \left (3 \, d x + 3 \, c\right ) + 8 \, a \sin \left (3 \, d x + 3 \, c\right )^{2} - 3 \, b \cos \left (3 \, d x + 3 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) + {\left (3 \, b \cos \left (2 \, d x + 2 \, c\right ) - b\right )} \sin \left (3 \, d x + 3 \, c\right )}{b^{3} \cos \left (6 \, d x + 6 \, c\right )^{2} + 9 \, b^{3} \cos \left (4 \, d x + 4 \, c\right )^{2} + 64 \, a^{2} b \cos \left (3 \, d x + 3 \, c\right )^{2} + 9 \, b^{3} \cos \left (2 \, d x + 2 \, c\right )^{2} + b^{3} \sin \left (6 \, d x + 6 \, c\right )^{2} + 9 \, b^{3} \sin \left (4 \, d x + 4 \, c\right )^{2} + 64 \, a^{2} b \sin \left (3 \, d x + 3 \, c\right )^{2} - 48 \, a b^{2} \cos \left (3 \, d x + 3 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) + 9 \, b^{3} \sin \left (2 \, d x + 2 \, c\right )^{2} - 6 \, b^{3} \cos \left (2 \, d x + 2 \, c\right ) + b^{3} - 2 \, {\left (3 \, b^{3} \cos \left (4 \, d x + 4 \, c\right ) - 3 \, b^{3} \cos \left (2 \, d x + 2 \, c\right ) - 8 \, a b^{2} \sin \left (3 \, d x + 3 \, c\right ) + b^{3}\right )} \cos \left (6 \, d x + 6 \, c\right ) - 6 \, {\left (3 \, b^{3} \cos \left (2 \, d x + 2 \, c\right ) + 8 \, a b^{2} \sin \left (3 \, d x + 3 \, c\right ) - b^{3}\right )} \cos \left (4 \, d x + 4 \, c\right ) - 2 \, {\left (8 \, a b^{2} \cos \left (3 \, d x + 3 \, c\right ) + 3 \, b^{3} \sin \left (4 \, d x + 4 \, c\right ) - 3 \, b^{3} \sin \left (2 \, d x + 2 \, c\right )\right )} \sin \left (6 \, d x + 6 \, c\right ) + 6 \, {\left (8 \, a b^{2} \cos \left (3 \, d x + 3 \, c\right ) - 3 \, b^{3} \sin \left (2 \, d x + 2 \, c\right )\right )} \sin \left (4 \, d x + 4 \, c\right ) + 16 \, {\left (3 \, a b^{2} \cos \left (2 \, d x + 2 \, c\right ) - a b^{2}\right )} \sin \left (3 \, d x + 3 \, c\right )}\,{d x} + x}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 14.90, size = 1672, normalized size = 6.46 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________